package com.cmcc.aregister.ui.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.KeyEvent;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

public abstract class MyDialog extends Dialog {

	public MyDialog(Context context) {
		super(context);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		getWindow().setBackgroundDrawableResource(android.R.color.transparent);
	}

	protected MyDialog(Context context, boolean cancelable,
			OnCancelListener cancelListener) {
		super(context, cancelable, cancelListener);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		getWindow().setBackgroundDrawableResource(android.R.color.transparent);
	}

	public MyDialog(Context context, int theme) {
		super(context, theme);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		getWindow().setBackgroundDrawableResource(android.R.color.transparent);
	}

	public void setTitle(int id) {
	}

	public void setText(int id) {
	}

	public void setText(String s) {
	}

	public void setConfirmClickListener(View.OnClickListener onClickListener) {
	}

	public void setCancelClickListener(View.OnClickListener onClickListener) {
	}

	public void setConfirmButtonText(int id) {
	}

	public void setCancelButtonText(int id) {
	}

	public boolean onKeyDown(int keyCode, KeyEvent event) {
		return false;
	}

}
